|
Menüeintrag |
---|
Punkte → Punkte importieren... |
Arbeitsbereich |
Points |
Standardtastenkürzel |
Keiner |
Eingeführt in Version |
- |
Siehe auch |
Import Export |
Der Befehl Points Importieren importiert eine Punktwolke aus einer Datei.
Siehe Points Umwandeln.
0 0 0 1.4562 -7.2354 12.2367 5.9423 3.1728 -17.6439
Zum Testen kann man diese Datei verwenden, die eine grobe (low poly) Version des Stanford Hasen ist.
The code below can be used to scale an imported point cloud. Select the point cloud and run the code, either by pasting it in the Python console, or by saving it as a macro and executing that macro.
from PySide import QtWidgets
import FreeCAD as App
import FreeCADGui as Gui
def scale_points(obj, scale_x, scale_y, scale_z):
mtx = App.Matrix()
mtx.scale(scale_x, scale_y, scale_z)
pts = obj.Points.copy()
pts.transformGeometry(mtx)
obj.Points = pts
App.ActiveDocument.recompute()
if Gui.Selection.getSelection():
obj = Gui.Selection.getSelection()[0]
if obj.isDerivedFrom("Points::Feature"):
scale, ok = QtWidgets.QInputDialog.getDouble(
None,
"Scale point cloud",
"Scale:",
value=1.0,
decimals=6
)
if ok:
scale_points(obj, scale, scale, scale)